text util: Avoid creating transient nodes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 11 Nov 2015 02:59:31 +0000 (21:59 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Nov 2015 02:59:31 +0000 (21:59 -0500)
We don't need to add .view - its already added, and shouldn't
really be needed in the first place.

gtk/gtktextutil.c

index 2ccd48c0801ed9331b4322d69fa0221bf92f97a4..c6632a6dbbaba076c953bb5c11f4b871f91c8b31 100644 (file)
@@ -244,9 +244,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
                                                pixmap_width, pixmap_height);
   cr = cairo_create (surface);
 
-  gtk_style_context_save (style_context);
-  gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_VIEW);
-
   gtk_style_context_get_color (style_context, state, &color);
   gdk_cairo_set_source_rgba (cr, &color);
   pango_cairo_show_layout (cr, layout);
@@ -254,8 +251,6 @@ _gtk_text_util_create_drag_icon (GtkWidget *widget,
   cairo_destroy (cr);
   g_object_unref (layout);
 
-  gtk_style_context_restore (style_context);
-
   return surface;
 }